package com.lanyan.system.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.lanyan.common.annotation.RequiredField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lanyan.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lanyan.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 商品Vo对象 product
 *
 * @author lanyan
 * @date 2024-11-26
 */
@Data
public class ProductVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "product_id", type = IdType.AUTO)
    @RequiredField(update = true,delete = true)
    private Long productId;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty("名称")
    private String name;

    /** 主图 */
    @Excel(name = "主图")
    @ApiModelProperty("主图")
    private String mainImg;

    /** 价格展示 */
    @Excel(name = "价格展示")
    @ApiModelProperty("价格展示")
    private String price;

    /** 画线价 */
    @Excel(name = "画线价")
    @ApiModelProperty("画线价")
    private BigDecimal marketPrice;

    /** 库存 */
    @Excel(name = "库存")
    @ApiModelProperty("库存")
    private Long stock;

    /** 销量 */
    @Excel(name = "销量")
    @ApiModelProperty("销量")
    private Long sales;

    /**
     * 排序值
     */
    @Excel(name = "排序值")
    @ApiModelProperty("排序值")
    private Integer productSort;

    /** 所属分类1 */
    @Excel(name = "所属分类1")
    @ApiModelProperty("所属分类1")
    private Integer classifyIdOne;

    /** 所属分类2 */
    @Excel(name = "所属分类2")
    @ApiModelProperty("所属分类2")
    private Integer classifyIdTwo;
}
